{% extends "admin/index.html" %}
{% load i18n %}

{% block content %}
<div id="content-main">
{% if section_list %}
    {% for section in section_list %}
        <div class="module">
        <table summary="Models available in the {{ section.name }} section.">
        <caption><a href="{{ section.url }}" class="section">{{ section.name }}</a></caption>
        {% for model in section.models %}
            <tr>
                <th scope="row">
                {% if model.perms.change %}
                    <a href="{{ model.admin_url }}">{{ model.name }}<div>{{ model.description }}</div></a>
                {% else %}
                    <span>{{ model.name }}</span>
                {% endif %}
                </th>
            {% if model.perms.add %}
                <td><a href="{{ model.admin_url }}add/" class="addlink">{% trans 'Add' %}</a></td>
            {% else %}
                <td></td>
            {% endif %}
            </tr>
        {% endfor %}
        </table>
        </div>
    {% endfor %}
{% else %}
    <p>{% trans "You don't have permission to edit anything." %}</p>
{% endif %}
</div>
{% endblock %}
